import request from '@/utils/request';

// 充电宝分页查询
export function pagePowerBank(form) {
    return request({
        url: '/device/powerBank/page',
        method: 'post',
        data: form,
    });
}

// 新增充电宝
export function addPowerBank(form) {
    return request({
        url: '/device/powerBank/add',
        method: 'post',
        data: form,
    });
}

// 查询充电宝详细
export function detailPowerBank(id) {
    return request({
        url: '/device/powerBank/detail/' + id,
        method: 'get',
    });
}

// 修改充电宝
export function modifyPowerBank(form) {
    return request({
        url: '/device/powerBank/modify',
        method: 'put',
        data: form,
    });
}

// 删除充电宝
export function deletePowerBank(ids) {
    return request({
        url: '/device/powerBank/delete',
        method: 'delete',
        data: ids,
    });
}
